#include "Launcher.h"
#include "GameScene.h"

Launcher::Launcher(void)
{
	gameScene = NULL;
}


Launcher::~Launcher(void)
{
}


CCScene * Launcher::scene()
{
	CCScene * gameScene = NULL;
	do 
	{
		 gameScene =  GameScene::create();
		 CC_BREAK_IF(! gameScene);

		 CCSize size = CCDirector::sharedDirector()->getWinSize();
		 gameScene->setPosition(ccp(size.width * 0.5, size.height * 0.5));
	} while (0);

	return gameScene;
}
/*
bool Launcher::init()
{
	bool bRet = false;
	do 
	{
		

		GameScene *  _gameScene = GameScene::create();
		CC_BREAK_IF(! _gameScene);
		this->addChild(_gameScene);

		//CCSize size = CCDirector::sharedDirector()->getWinSize();
		// _gameScene->setPosition(ccp(0, size.height));

		bRet = true;
	} while (0);

	return bRet;
}
*/